home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DJGPP
/
BCCGRX12.ZIP
/
contrib
/
bcc2grx
/
src
/
bccgrx16.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-24
|
472b
|
22 lines
/*
* BCC2GRX - Interfacing Borland based graphics programs to LIBGRX
* Copyright (C) 1993 Hartmut Schirmer
*
* see bccgrx.c for details
*/
#include "bccgrx00.h"
void line(int x1, int y1, int x2, int y2)
{
_DO_INIT_CHECK;
moveto( x2, y2);
if (__gr_lstyle == SOLID_LINE && LNE.lno_width == 1)
GrLine( x1+VL, y1+VT, X+VL, Y+VT, COL|WR);
else {
LNE.lno_color= COL|WR;
GrCustomLine( x1+VL, y1+VT, X+VL, Y+VT, &LNE);
}
}